# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nitrokey-app2
pkgver=2.3.2
pkgrel=0
pkgdesc="Nitrokey management application"
url="https://github.com/Nitrokey/nitrokey-app2"
# blocked by py3-spsdk -> py3-pynitrokey
arch="aarch64 x86_64"
license="Apache-2.0"
depends="
	py3-pynitrokey
	py3-pyside6
	py3-qt-material
	py3-qt5
	py3-udev
	"
makedepends="
	poetry
	py3-flit-core
	py3-gpep517
	py3-installer
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Nitrokey/nitrokey-app2/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # No tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
91bf2207ca672b1e78596cc2b2c7b10816cc09ceae13b84a0ad7c303e2c1a95d271e90100e67fd3b152dfe2e3ec46281873d426beb9faded8fbe9805bbfd5c3f  nitrokey-app2-2.3.2.tar.gz
"
